package game.game.network.cmd;

import entity.Context;
import game.engine.network.cmd.CmdClient;
import game.engine.network.cmd.EnumCommand;
import game.engine.network.server.IControllerServer;
import json.JSONObject;

public class CmdCAction extends CmdClient
{

	protected static String ACTION_TYPE = "at";

	public CmdCAction(JSONObject pObject)
	{
		super( pObject );
	}

	public CmdCAction(Context pContext, Integer pActionType)
	{
		super( EnumCommand.CMD_CLIENT_ACTION, pContext );
		addParam( ACTION_TYPE , pActionType );
	}

	@Override
	public void execute( IControllerServer pController )
	{
		pController.execute( this );
	}

	public Integer getActionType()
	{
		return (Integer) getParam( ACTION_TYPE );
	}

}
